package com.example.demo.dubbo;

import com.alibaba.dubbo.config.annotation.Reference;
import com.example.demo.request.City;
import com.example.demo.response.BaseResponse;
import com.example.demo.service.DemoService;
import org.springframework.stereotype.Component;


@Component
public class CityDubboConsumerService {

    private volatile static int a1 =1;

    @Reference(version = "1.0.0")
    DemoService demoService;

    public void printCity() {
        City city = new City();

        BaseResponse baseResponse = demoService.getPermissions(city);
        System.out.println(baseResponse.getResultCode());
    }


}
